package org.classg.order.service;

import org.classg.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-06-16
 */
public interface OrderService extends IService<Order> {

    // 根据课程id和用户id创建订单，返回订单id
    String insertOrderByCourderIdAndUserId(String courseId, String memberIdByJwtToken);

    // 根据订单号查询订单信息
    Order queryOrderByOrderNo(String orderNo);
}
